package com.ttloner.service.impl;

import com.ttloner.pojo.User;

/**
 * @author TTLoner
 * @date 2021/7/6 11:15
 * @description
 */
public interface UserService {
    /**
     * @description: 注册用户
     * @params: [user]
     * @return: int
     * @author: TTLoner
     * @dateTime: 2021/7/6 11:16
     */
    public int registUser(User user);

    /**
     * @description: 登录
     * @params: [user]
     * @return: com.ttloner.pojo.User
     * @author: TTLoner
     * @dateTime: 2021/7/6 11:18
     */
    public User login(User user);

    /**
     * @description: 判断注册时用户名是否可用
     * @params: [username]
     * @return: boolean
     * @author: TTLoner
     * @dateTime: 2021/7/6 11:20
     */
    public boolean existUsername(String username);
}
